package com.lxq.springBoot.jedis;

import java.math.BigDecimal;

public class Book {

	private String name;

	private BigDecimal price;

	public String getNme() {
		return name;
	}

	public void setNme(String nme) {
		this.name = nme;
	}

	public BigDecimal getPrice() {
		return price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	@Override
	public String toString() {
		return "Book [" + (name != null ? "nme=" + name + ", " : "") + (price != null ? "price=" + price : "") + "]";
	}

	public Book() {
		super();
	}

	public Book(String nme, BigDecimal price) {
		this.name = nme;
		this.price = price;
	}

}
